package cn.edu.scau.sec.caixiaoqing.composite.transparentcomposite;

import cn.edu.scau.sec.caixiaoqing.composite.FourMixedOperations;

public class AtomTransparentTestCase implements TransparentTestCase{


    private int expected;
    private int fact;

    public AtomTransparentTestCase(int a,int b, int expected){
        fact = new FourMixedOperations().add(a, b);
        this.expected = expected;
    }

    @Override
    public boolean test() {
        System.out.println("期望值："+ this.expected +" "+ "实际值：" + this.fact);
        return this.fact==this.expected;
    }

    @Override
    public void add(TransparentTestCase transparentTestCase) { }

    @Override
    public void remove(TransparentTestCase transparentTestCase) { }

    @Override
    public TransparentTestCase getTestCase(int index) {return null;}
}
